package com.neuedu.model;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;

public class Food {
	private int foodNo;
	private String foodImg;
	private String foodName;
	private int typeNo;
	private int makeNo;
	private int userNo;
	private String introduction;
	private String ingredient;
	private String tools;
	private String step;
	
	@JSONField(format="yyyy/MM/dd")
	private Date publishTime;
	private String state;
	
	// has a - 包含 -强依赖关系
		// 把表关系映射为对象关系
	private FoodType foodType; // 美食类别
	private FoodMake foodMake; // 制作类型
	private UserMessage userMessage; // 用户
	

	
	public FoodType getFoodType() {
		return foodType;
	}

	public void setFoodType(FoodType foodType) {
		this.foodType = foodType;
	}

	public FoodMake getFoodMake() {
		return foodMake;
	}

	public void setFoodMake(FoodMake foodMake) {
		this.foodMake = foodMake;
	}

	public UserMessage getUserMessage() {
		return userMessage;
	}

	public void setUserMessage(UserMessage userMessage) {
		this.userMessage = userMessage;
	}

	public Food() {
		super();
	}

	public Food(int foodNo, String foodImg, String foodName, int typeNo, int makeNo, int userNo, String introduction,
			String ingredient, String tools, String step, Date publishTime, String state) {
		super();
		this.foodNo = foodNo;
		this.foodImg = foodImg;
		this.foodName = foodName;
		this.typeNo = typeNo;
		this.makeNo = makeNo;
		this.userNo = userNo;
		this.introduction = introduction;
		this.ingredient = ingredient;
		this.tools = tools;
		this.step = step;
		this.publishTime = publishTime;
		this.state = state;
	}

	public int getFoodNo() {
		return foodNo;
	}

	public void setFoodNo(int foodNo) {
		this.foodNo = foodNo;
	}

	public String getFoodImg() {
		return foodImg;
	}

	public void setFoodImg(String foodImg) {
		this.foodImg = foodImg;
	}

	public String getFoodName() {
		return foodName;
	}

	public void setFoodName(String foodName) {
		this.foodName = foodName;
	}

	public int getTypeNo() {
		return typeNo;
	}

	public void setTypeNo(int typeNo) {
		this.typeNo = typeNo;
	}

	public int getMakeNo() {
		return makeNo;
	}

	public void setMakeNo(int makeNo) {
		this.makeNo = makeNo;
	}

	public int getUserNo() {
		return userNo;
	}

	public void setUserNo(int userNo) {
		this.userNo = userNo;
	}

	public String getIntroduction() {
		return introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}

	public String getIngredient() {
		return ingredient;
	}

	public void setIngredient(String ingredient) {
		this.ingredient = ingredient;
	}

	public String getTools() {
		return tools;
	}

	public void setTools(String tools) {
		this.tools = tools;
	}

	public String getStep() {
		return step;
	}

	public void setStep(String step) {
		this.step = step;
	}

	public Date getPublishTime() {
		return publishTime;
	}

	public void setPublishTime(Date publishTime) {
		this.publishTime = publishTime;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
	
}
